package com.xdxc.feign;


import com.xdxc.model.dto.CorrectAnswerDTO;
import com.xdxc.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "xdxc-exam")
@Component
public interface ExamFeign {
    @PostMapping("/correctAnswer/getCorrectAnswer")
     Result<CorrectAnswerDTO> getCorrectAnswer(@RequestParam long  paperId, @RequestParam long questionId);

    @GetMapping("/getExam/{examId}")
    Result<Boolean> getExamId(@PathVariable Long examId);



}
